﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucMenu.ascx.cs" Inherits="Web_NhaMay.UC.ucMenu" %>

 <div class="ddsmoothmenu" id="smoothmenu1">
                <ul>
                    <asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("CaID") %>' Visible="false"></asp:Label>
                            <li><a href="<%#Eval("CaLink") %>?CaID=<%#Eval("CaID") %>">  
                                <span class="title">
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("CaName") %>'></asp:Label></span><br />
                                <span class="sub"></span></a>
                                <ul>
                                    <asp:DataList ID="DataList2" runat="server" DataSourceID="objDSSubCate" RepeatDirection="Horizontal"
                                        RepeatLayout="Flow">
                                        <ItemTemplate>
                                            <li><a href='<%#Eval("CaLink") %><%#Eval("CaID")%><%# "&CaName=" + Eval("CaName") %>'>
                                                <asp:Label ID="Label4" runat="server" Text='<%# Eval("CaName") %>'></asp:Label>
                                            </a></li>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </ul>
                            </li>
                            <asp:ObjectDataSource ID="objDSSubCate" runat="server" SelectMethod="GetCateSub"
                                TypeName="BCM.TemplateDemo.BLL.BCategory">
                                <SelectParameters>
                                    <asp:ControlParameter ControlID="Label1" Name="_caid" PropertyName="Text" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </ItemTemplate>
                    </asp:DataList>
                </ul>
                
        </div>

<asp:DataList ID="DataList3" runat="server"></asp:DataList>
